#!/usr/bin/python
# -*-coding: UTF-8 -*-
"""
# Time: 2022/7/24 22:49
# @Author: 修养
# @Project_name: PROJECT_NAME
"""
env = '1'
hosts = '1'
user_names = '1'
passwords = '1'
ports = '1'
print("Hello")


class Config:

    def __init__(self, env):

        print("World")
        if env == 'ST':
            self.hosts = 'localhosts1'
            self.passwords = 'sunaos2'
            self.user_names = 'sunaos3'
            self.ports = '1521'
        elif env == 'UAT':
            self.hosts = 'localhosts'
            self.passwords = 'sunaos'
            self.user_names = 'sunaos'
            self.ports = '3306'
        global hosts
        global user_names
        global passwords
        global ports
        # print(hosts)
        hosts = self.hosts
        user_names = self.user_names
        passwords = self.passwords
        ports = self.ports
        print(hosts)

    @staticmethod
    def infos():
        print(hosts, user_names)
